package com.dragon.graduation.projectApplication.service.impl;

import com.dragon.graduation.project.controller.vo.StudentProjectVO;
import com.dragon.graduation.projectApplication.entity.ProjectApplicationEntity;
import com.dragon.graduation.projectApplication.mapper.ProjectApplicationMapper;
import com.dragon.graduation.projectApplication.service.ProjectApplicationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 选题申请表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:20:09
 */
@Service
public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicationMapper, ProjectApplicationEntity> implements ProjectApplicationService {

    @Override
    public ProjectApplicationEntity getByProjectIdAndStudentId(Integer projectId, Integer studentId) {
        return baseMapper.selectByProjectIdAndStudentId(projectId,studentId);
    }

    @Override
    public List<StudentProjectVO> findByStudentId(Integer id) {
        return baseMapper.selectByStudentId(id);
    }
}
